#include<iostream>
#include<cstdlib>
using namespace std;
int a[100],n;
bool major()
{
    int x=rand()%n+1;
    int may=a[x],cnt=0;
    for(int i=1;i<=n;i++)
    if(a[i]==may) cnt++;
    if(cnt>n/2) return true;
    else return false;
}
bool majorn(int cnt)
{
    for(int i=1;i<=cnt;i++)
    {
        if(major())
        return true;
    }
    return false;
}
int main()
{
    cin>>n;
    for(int i=1;i<=n;i++)
    cin>>a[i];
    if(majorn(5))
    cout<<"yes"<<endl;
    else cout<<"no"<<endl;
}